import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import logger from 'redux-logger'
import address from './reducers/address'

// 中间件 => 强化dispatch
const store = createStore(address, applyMiddleware(thunk, logger))

export default store